<template>
  <el-form-item :label="prop.name" :prop="prop.id">
    <template slot="label">
      <rva-search-config :prop="prop"></rva-search-config>
    </template>
    <el-select :placeholder="'请选择' + prop.name" :multiple="this.prop.formSelectorSingle == 'N'" :value="value"
               @input="$emit('input', $event)" size="small">
      <el-option v-for="dict in dictData" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue">
      </el-option>
    </el-select>
  </el-form-item>
</template>

<script>
import {RvaUtils} from "@/api/rva/util";

export default {
  name: "RvaSearchSelect",
  data () {
    return {
      rules:[],
      dictData: [],
      disabled: false
    }
  },
  props : ['prop', 'value', 'formRef', 'formData'],
  created() {
    RvaUtils.getDicts(this.prop.dictType, this);
  }
}
</script>
